package com.cq.hd.member.api;

import com.alibaba.fastjson.JSONObject;
import com.cq.hd.common.pagination.Page;
import com.cq.hd.common.response.Result;
import com.cq.hd.member.api.dto.AdminBankPayRecordPageDto;
import com.cq.hd.member.api.dto.BankPayQueryDto;
import com.cq.hd.member.api.dto.BankPayRechargeDto;
import com.cq.hd.member.api.vo.AdminBankPayRecordPageVo;
import com.cq.hd.member.api.vo.BankPayQueryVo;
import com.cq.hd.member.api.vo.BankPayRechargeVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "hd-o2o-member-service", contextId = "bank-pay-record-api")
public interface TbBankPayRecordApi {

    // 网银支付充值
    @PostMapping("/member/bankPayRecord/recharge")
    Result<BankPayRechargeVo> recharge(@RequestBody BankPayRechargeDto bankPayRechargeDto);

    // 查单
    @PostMapping("/member/bankPayRecord/queryOrderPay")
    Result<BankPayQueryVo> queryOrderPay(@RequestBody BankPayQueryDto bankPayQueryDto);

    // 分页条件查询商家后台补贴金充值记录
    @GetMapping("/member/bankPayRecord/pageAdminBankPayRecord")
    Result<Page<AdminBankPayRecordPageVo>> pageAdminBankPayRecord(@SpringQueryMap AdminBankPayRecordPageDto adminBankPayRecordPageDto);

    // 网银充值补贴金回调
    @PostMapping("/member/bankPayRecord/bankPayCallback")
    Result<Boolean> bankPayCallback(@RequestBody JSONObject dataObj);
}
